package com.qianfeng.openplatform.utils;

import com.qianfeng.openplatform.commons.field.StaticField;
import com.qianfeng.openplatform.exception.CheckException;
import org.springframework.util.StringUtils;

/**
 * @author 江江
 * @Date 2020/7/22 11:38
 */
public class CheckUtil {
    public static void check(String result){
        if (StringUtils.isEmpty(result)){
            throw new CheckException(StaticField.CHECK_EXCEPTION_MESSAGE,StaticField.CHECK_CODE);
        }
    }
}
